package com.woniuxy.service;

import com.woniuxy.model.dto.UserLoginDto;
import com.woniuxy.model.entity.Customers;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
* @author KOO
* @description 针对表【customers】的数据库操作Service
* @createDate 2025-01-04 11:15:16
*/
public interface CustomersService extends IService<Customers> {

    String sendSms(String telephone);

    Customers smsLogin(UserLoginDto params, HttpServletRequest request);

    Customers isLogged(String token);

    void logout(String token, HttpServletResponse response);
    Customers getCustomerByPhone(String phoneNumber);

}
